home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Online / OpenURL / Developer / Source / prefs_common.c < prev    next >
C/C++ Source or Header  |  1999-09-26  |  850b  |  35 lines

  1. /*
  2. ** OpenURL - MUI preferences for openurl.library
  3. ** Written by Troels Walsted Hansen <troels@thule.no>
  4. ** Placed in the public domain.
  5. **
  6. ** This module contains utility functions common to all modules.
  7. */
  8.  
  9. #include "prefs_common.h"
  10. #include "prefs_main.h"
  11.  
  12. /**************************************************************************/
  13.  
  14. VOID SPrintf(STRPTR to, STRPTR fmt, ...)
  15. {
  16.     static ULONG fmtfunc = 0x16C04E75;
  17.      RawDoFmt(fmt, &fmt + 1, (APTR)&fmtfunc, to);
  18. }
  19.  
  20. /**************************************************************************/
  21.  
  22. LONG xget(Object *obj, ULONG attribute)
  23. {
  24.     LONG x;
  25.     get(obj, attribute, &x);
  26.     return(x);
  27. }
  28.  
  29. /**************************************************************************/
  30.  
  31. ULONG __stdargs DoSuperNew(struct IClass *cl, Object *obj, ULONG tag1, ...)
  32. {
  33.     return(DoSuperMethod(cl, obj, OM_NEW, &tag1, NULL));
  34. }
  35.